package cn.itcast.service;

import cn.itcast.entity.ShoppingCart;

import java.util.List;

public interface IShoppingCartService {
    ShoppingCart add(ShoppingCart shoppingCart);

    ShoppingCart sub(ShoppingCart shoppingCart);

    List<ShoppingCart> list(Long userId);

    void clean(Long idFromSession);
}
